package com.bat.conf;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

/**
 * @program: parent
 * @description:
 * @author: zhoupengfei
 * @create: 2019-10-10 21:44
 **/
@Configuration
@Slf4j
public class ValidConf {
    @Bean
    public MethodValidationPostProcessor methodValidationPostProcessor() {
        log.info("=========> bat:init ValidConf 开启单个基本参数校验 =========> ");
        return new MethodValidationPostProcessor();
    }

}